auto resize image to fit div container